package com.seeTools.boot.common.constant;

/**
 * @Author: seeTools
 * @Date: 2024/6/6  15:07
 * @Version 1.0
 */
public interface Constants {


    String ADMIN_LOGIN_NAME = "admin";

    String ADMIN_USER_NAME = "超级管理员";

    /**
     * http请求
     */
    String HTTP = "http://";

    /**
     * https请求
     */
    String HTTPS = "https://";


    /**
     * UTF-8 字符集
     */
    String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    String GBK = "GBK";

    /**
     * 默认密码
     */
    String DEFAULT_CARD_PASSWORD = "666666";

    /**
     * 缓存KEY
     */
    interface CacheKey {
        String PREFIX = "cache:";

        String DATA_PREFIX = "data:";

        String CONFIG_PREFIX = "config";

        String USER = PREFIX + "user";
        String USER_ROLE_LIST = PREFIX + "userRoleList";
        String ROLE_LIST_TENANT_ID = PREFIX + "roleList:tenantId";
        String MENU_LIST_USER_ID = PREFIX + "menuList:userId";
        String ROLE_MENU_LIST = PREFIX + "roleMenuList";
        String TENANT = PREFIX + "tenant";

        /**
         * 数据字典
         */
        String SYS_DICT = PREFIX + "sys_dict";

        /**
         * OSS配置
         */
        String SYS_OSS_CONFIG = "sys_oss_config";


        /**
         * 会员关注缓存KEY前缀
         */
        String CACHE_MEMBER_SUBSCRIBE_PREFIX = PREFIX + "member:subscribe:";


        /**
         * 修改会员名称
         */
        String CACHE_UPDATE_MEMBER_NICKNAME_LIMIT_PREFIX = PREFIX + "update:nickname:limit:";


        /**
         * 优惠券模板缓存KEY前缀
         */
        String CACHE_COUPON_TEMPLATE_ITEM_PREFIX = PREFIX + "coupon-template:item:";

        /**
         * 会员基础信息缓存KEY前缀
         */
        String CACHE_MEMBER_INFO_PREFIX = PREFIX + "member:info:";


        String CACHE_WX_USER_PREFIX = PREFIX + "wxuser:";

        /**
         * 会员信息缓存KEY
         */
        String CACHE_MEMBER_PREFIX = PREFIX + "member:";

        /**
         * 油站缓存KEY前缀
         */
        String CACHE_STATION_ITEM = PREFIX + "station:item:";


        /**
         * 会员激活缓存KEY前缀
         */
        String CACHE_MEMBER_ACTIVATION_PREFIX = PREFIX + "member:activation:";


        /**
         * 油站列表缓存KEY
         */
        String CACHE_STATION_LIST = PREFIX + "station:list";


        /**
         * 会员券包缓存
         */
        String CACHE_COUPON_PACKET = PREFIX + "coupon:packet:";

        /**
         * 优惠券可用券包缓存前缀
         */
        String CACHE_COUPON_PACKET_USABLE_PREFIX = PREFIX + "coupon:packet:usable:";


        /**
         * 优惠券已用券包缓存前缀
         */
        String CACHE_COUPON_PACKET_USED_PREFIX = PREFIX + "coupon:packet:used:";


        /**
         * 加油卡锁卡前缀
         */
        String CACHE_CARD_LOCK_PREFIX = PREFIX + "card:lock:";


        /**
         * 优惠券过期券包缓存前缀
         */
        String CACHE_COUPON_PACKET_EXPIRED_PREFIX = PREFIX + "coupon:packet:expired:";

        /**
         * 优惠券模板列表缓存KEY
         */
        String CACHE_COUPON_TEMPLATE_LIST = PREFIX + "coupon-template:list";


        /**
         * 会员打标签的key，如果key存在则不打
         */
        String CACHE_TAG_ADD_USER_LIST_KEY = PREFIX + "tag:add:user:key:";

        /**
         * 最新班次名称
         */
        String CACHE_LATEST_SHIFT = PREFIX + "cache:market:shift:";

        /**
         * 会员激活申请审批队列前缀
         */
        String MEMBER_ACTIVATION_QUEUE = DATA_PREFIX + "NotActiveMember:";


        /**
         * 会员卡ID
         */
        String WXCARD_CARDID_KEY = CONFIG_PREFIX + "shunyou:wxcard:cardid";

        /**
         * 导入卡开关
         */
        String CARD_IMPORT_ON = CONFIG_PREFIX + "card:import:on";

        /**
         * 储值卡全局自增序列
         */
        String CARD_GLOBAL_INDEX_KEY = CONFIG_PREFIX + "card:number:index";
    }


    /**
     * 菜单类型
     */
    interface MenuType {
        String MENU = "menu";
        String BUTTON = "btn";
    }


    /**
     * 字典類型
     */
    interface DictType {

        /**
         * 字典正常状态
         */
        String DICT_NORMAL = "1";

        /**
         * 字典不正常状态
         */
        String DICT_UN_NORMAL = "0";

        /**
         * 操作类型
         */
        String SYS_OPER_TYPE = "sys_oper_type";

        /**
         * 会员类型
         */
        String MEMBER_TYPE = "member_type";


        /**
         * 会员状态
         */
        String MEMBER_STATE = "member_state";

        /**
         * 拉新类型
         */
        String MEMBER_RECRUIT = "member_recruit";

        /**
         * 用户性别
         */
        String USER_SEX = "sys_user_sex";


        /**
         * 优惠券类型
         */
        String DICT_COUPON_TYPE = "coupon_type";

        /**
         * 积分渠道
         */
        String DICT_POINTS_CHANNEL = "points_channel";
    }

    /**
     * 配置管理
     */
    interface ConfigType {

        /**
         * 默认密码
         */
        String INIT_PASSWORD = "sys.user.initPassword";

        /**
         * 验证码开关
         */
        String CAPTCHA_ENABLE = "sys.account.captchaEnabled";


        /**
         * 注册成功客服消息
         */
        String MSG_SUBSCRIBE_SUCCESS = "config.msg.subscribe.success";
    }

}
